﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contract.aspx.cs" EnableEventValidation="false"  Inherits="WMS6.Web.Billing.Contract" meta:resourcekey="Page" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Contract</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        } 
        //弹出窗口选择货主
        function selectOwner() {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        function confirmMsg(code) {
            if (code == "F9110_001") {
                if (confirm('<%=GetGlobalMsgResource("F9110_001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }      
    </script>
</head>
<body>
    <form id="F9011" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblOwner" runat="server" CssClass="label_header" 
                            Text="合同" meta:resourcekey="lblOwner"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>" Enabled="False" 
                            onclick="btnGoBack_Click"     /></td>
                    <td><asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>" 
                            Enabled="False"  AccessKey="n" onclick="btnNew_Click" 
                             /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" Enabled="False" 
                            AccessKey="s" onclick="btnSave_Click" 
                             /></td>
                    <td><asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>" Enabled="False"  
                            AccessKey="d"  
                            OnClientClick="javascript:if(confirmMsg('F9110_001')) return true;else return false;" 
                            onclick="btnDelete_Click"   /></td>
                    <td><asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>" Enabled="False" 
                            AccessKey="c" onclick="btnCopy_Click" 
                             /></td>
                </tr>
            </table>
        </div>
        
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                     <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                             meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1"></div>
            </div>
            
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2"></div>
            </div>
            <div style="float:left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2)" id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" 
                    meta:resourcekey="one2">票据</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2"></div>
            </div>
            
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblContractID" runat="server" CssClass="label" Text="合同编号" 
                                meta:resourcekey="lblContractID"></asp:Label><span
                                class="must_input">*</span>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主" 
                                meta:resourcekey="lblOwnerID"></asp:Label><span
                                class="must_input">*</span>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="描述" 
                                meta:resourcekey="lblDescr"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtContractID" runat="server" CssClass="textbox" 
                                MaxLength="20" meta:resourcekey="txtContractID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtOwnerID" ></asp:TextBox><img src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item" class="img" onclick="selectOwner();"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDescr" runat="server" CssClass="textbox" MaxLength="20" 
                                meta:resourcekey="txtDescr"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblContractType" runat="server" CssClass="label" Text="合作类型" 
                                meta:resourcekey="lblContractType"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblSettleAccount" runat="server" CssClass="label" Text="结算方式" 
                                meta:resourcekey="lblSettleAccount"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblPayment" runat="server" CssClass="label" Text="付费金额(天)" 
                                meta:resourcekey="lblPayment"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlContractType" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="ddlContractType">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlSettleAccount" runat="server" 
                                CssClass="mediumselectbox" meta:resourcekey="ddlSettleAccount">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="txtPayment" runat="server" CssClass="textbox" MaxLength="10" 
                                onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtPayment"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblStartTime" runat="server" CssClass="label" Text="开始时间" 
                                meta:resourcekey="lblStartTime"></asp:Label><span
                                class="must_input">*</span>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblEndTime" runat="server" CssClass="label" Text="结束时间" 
                                meta:resourcekey="lblEndTime"></asp:Label><span
                                class="must_input">*</span>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblDeposit" runat="server" CssClass="label" Text="保证金" 
                                meta:resourcekey="lblDeposit"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtStartTime" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtStartTime" ></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtStartTime);"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtEndTime" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtEndTime" ></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtEndTime);"/>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDeposit" runat="server" CssClass="textbox" MaxLength="10" 
                                onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtDeposit"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblWhLoad" runat="server" CssClass="label" Text="库房荷载" 
                                meta:resourcekey="lblWhLoad"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblManageType" runat="server" CssClass="label" Text="管理形式" 
                                meta:resourcekey="lblManageType"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblOverdueRent" runat="server" CssClass="label" Text="逾期支付租金(天)" 
                                meta:resourcekey="lblOverdueRent"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtWhLoad" runat="server" CssClass="textbox" MaxLength="20" 
                                onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtWhLoad"></asp:TextBox>
                        </td>
                        <td>
                         <asp:DropDownList ID="ddlManageType" runat="server" CssClass="mediumselectbox" 
                                meta:resourcekey="ddlManageType">
                            </asp:DropDownList>                          
                        </td>
                        <td>
                            <asp:TextBox ID="txtOverdueRent" runat="server" CssClass="textbox" 
                                MaxLength="10" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtOverdueRent"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="是否启用" 
                                Checked="True" meta:resourcekey="chkIsActive" />
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
             
            <div id="con_one_2" style="display:none;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblCostTypes" runat="server" CssClass="label" Text="费用类型" 
                                meta:resourcekey="lblCostTypes"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblCost" runat="server" CssClass="label" Text="费用" 
                                meta:resourcekey="lblCost"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblTaxGroup" runat="server" CssClass="label" Text="税组" 
                                meta:resourcekey="lblTaxGroup"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblGeneralLedger" runat="server" CssClass="label" Text="总账分配" 
                                meta:resourcekey="lblGeneralLedger"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" CssClass="label" Text="单据最低进货处理费用" 
                                meta:resourcekey="Label1"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInBoundCharge" runat="server" CssClass="textbox" 
                                MaxLength="20" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtLowestInBoundCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInBoundTagGroup" runat="server" CssClass="textbox" 
                                MaxLength="20" meta:resourcekey="txtLowestInBoundTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInBoundGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" meta:resourcekey="txtLowestInBoundGenralLedger"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label2" runat="server" CssClass="label" Text="单据最低出货处理费用" 
                                meta:resourcekey="Label2"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestOutBoundCharge" runat="server" CssClass="textbox" 
                                MaxLength="20" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtLowestOutBoundCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestOutBoundTagGroup" runat="server" CssClass="textbox" 
                                MaxLength="20" meta:resourcekey="txtLowestOutBoundTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestOutBoundGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" meta:resourcekey="txtLowestOutBoundGenralLedger"></asp:TextBox>
                        </td>
                    </tr>                    
                    <tr>
                        <td>
                            <asp:Label ID="Label4" runat="server" CssClass="label" Text="单据最低初始存放期收费" 
                                meta:resourcekey="Label4"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInitialStorageCharge" runat="server" 
                                CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"
                                MaxLength="20" meta:resourcekey="txtLowestInitialStorageCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInitialStorageTagGroup" runat="server" CssClass="textbox"
                                MaxLength="20" meta:resourcekey="txtLowestInitialStorageTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInitialStorageGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestInitialStorageGenralLedger"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label5" runat="server" CssClass="label" Text="进货处理最低账单费用" 
                                meta:resourcekey="Label5"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInBoundBillCharge" runat="server" CssClass="textbox" 
                                MaxLength="20" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtLowestInBoundBillCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInBoundBillTagGroup" runat="server" CssClass="textbox"
                                MaxLength="20" meta:resourcekey="txtLowestInBoundBillTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInBoundBillGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestInBoundBillGenralLedger"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label8" runat="server" CssClass="label" Text="初始存放期最低账单费用" 
                                meta:resourcekey="Label8" ></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInitialStorageBillCharge" runat="server" 
                                CssClass="textbox"  onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestInitialStorageBillCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInitialStorageBillTagGroup" runat="server" CssClass="textbox"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestInitialStorageBillTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestInitialStorageBillGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestInitialStorageBillGenralLedger"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label6" runat="server" CssClass="label" Text="循环存放期最低账单费用" 
                                meta:resourcekey="Label6"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestRecurringStorageBillCharge" runat="server" 
                                CssClass="textbox" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestRecurringStorageBillCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestRecurringStorageBillTagGroup" runat="server" CssClass="textbox"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestRecurringStorageBillTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtLowestRecurringStorageBillGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" 
                                meta:resourcekey="txtLowestRecurringStorageBillGenralLedger"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label7" runat="server" CssClass="label" Text="全部账单最低费用" 
                                meta:resourcekey="Label7"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAllBillsLowestCharge" runat="server" CssClass="textbox" 
                                MaxLength="20" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" 
                                meta:resourcekey="txtAllBillsLowestCharge"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAllBillsLowestTagGroup" runat="server" CssClass="textbox" 
                                MaxLength="20" meta:resourcekey="txtAllBillsLowestTagGroup"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAllBillsLowestGenralLedger" runat="server" CssClass="textbox"
                                MaxLength="20" meta:resourcekey="txtAllBillsLowestGenralLedger"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div> 
         </div>
              <input type="hidden" id="hdnFlag" runat="server" />
            </ContentTemplate>
            
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdncalendarFlag"  runat="server"/>         
      <input type="hidden" id="hdnDataFormat" runat="server" />             
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		 hiddenCalendarDiv();
		//-->
</script>